package com.ljtg.ljtgpojo.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "Category", description = "分类实体类")
public class Category {
    @Schema(description = "主键ID", example = "1")
    private Long id;

    @Schema(description = "分类名称", example = "电子产品")
    private String name;

    @Schema(description = "顺序", example = "1")
    private Integer sort;

    @Schema(description = "分类状态：0:禁用, 1:启用", example = "1")
    private Integer status;

    @Schema(description = "创建时间", example = "2023-10-01T12:00:00")
    private LocalDateTime createTime;

    @Schema(description = "更新时间", example = "2023-10-01T12:00:00")
    private LocalDateTime updateTime;

    @Schema(description = "创建人", example = "1")
    private Long createUser;

    @Schema(description = "更新人", example = "1")
    private Long updateUser;
}